#pragma once

#include <BWAPI.h>
#include <string>
#include <ctime>
#include <time.h>
#include "hugin"
#include "policyFileParser.h"

using namespace BWAPI;
using namespace std;

class ControlBot
{
private:
	Unit * _agent;
	int _currentStep;
	float _timeSinceLastStep;
	float _timeBetweenSteps;
	clock_t _lastTime;
	PolicyFileParser *_decisionTreeParser;
	int _maxSteps;
	float _escapeDistance;
	Position _lastKnownEnemyPosition;

public:
	ControlBot();

	void Attack();
	void Escape();
	void MakeDecision();
	void Tick();

	bool CanSeeEnemy();

};

